From: Matthew Barnes Date: Tue, 5 May 2015 15:47:07 +0000 (-0400) Subject: Use g_autoptr(GKeyFile) instead of gs_unref_keyfile X-Git-Tag: archive/raspbian/2022.1-3+rpi1~1^2~748 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=c69347b622c605a8e2565187930a0071239099d5;p=ostree.git Use g_autoptr(GKeyFile) instead of gs_unref_keyfile --- diff --git a/src/ostree/ot-admin-builtin-set-origin.c b/src/ostree/ot-admin-builtin-set-origin.c index 24a919fd..9e140bf0 100644 --- a/src/ostree/ot-admin-builtin-set-origin.c +++ b/src/ostree/ot-admin-builtin-set-origin.c @@ -129,7 +129,7 @@ ot_admin_builtin_set_origin (int argc, char **argv, GCancellable *cancellable, G goto out; { g_autofree char *new_refspec = g_strconcat (remotename, ":", branch ? branch : origin_ref, NULL); - gs_unref_keyfile GKeyFile *new_origin = NULL; + g_autoptr(GKeyFile) new_origin = NULL; g_autoptr(GFile) origin_path = NULL; new_origin = ostree_sysroot_origin_new_from_refspec (sysroot, new_refspec);